package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.Brand;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BrandMapper {

    //sql = select * from brand where is_deleted = 0 order by id desc
    List<Brand> findByPage();

    void save(Brand brand);

    List<Brand> findAll();

    void edit(Brand brand);

    void deleteByName(Integer id);

    List<Brand> findByCategory3Id(Long category3Id);
}
